import Point from './Point.js';
var body = document.querySelector('body');

let array = [new Point(0,0),new Point(0,1)];


function* top(){
  for(let a of array){
    let {x,y} = a;
    if(x >= y)
      yield a;
  }
}

let result=top();

for(let a of result){
  console.log(a);
}

function print(...points){
  for(let p of points){
    //console.log(p);
  }
}

//print(new Point(1,1),new Point())

//let {x,y}=new Point();
//console.log(x,y);

body.textContent = 'Good point: ' + new Point(1, 23);
